package com.zhongkun.datahome.framework.config;

/**
 * @Author: lifengsheng
 * @Date: 2025/5/7 15:26
 * @Desc
 */
public class TenantContext {
    private static final ThreadLocal<Boolean> IGNORE_TENANT = new ThreadLocal<>();

    public static void setIgnore(boolean ignore) {
        IGNORE_TENANT.set(ignore);
    }

    public static boolean isIgnore() {
        return Boolean.TRUE.equals(IGNORE_TENANT.get());
    }

    public static void clear() {
        IGNORE_TENANT.remove();
    }
}
